const editView = (localData,data) => {


    let markup = `
    <form action="" class="form-horizontal modal-form" role="form" id="form">

        <div class="form-group">
            <label for="name" class="col-xs-2 control-label">用户名:</label>
            <div class="col-xs-9">
                <input type="text" id="name" name="name" value="{{:name}}" class="form-control">
            </div>
        </div>
        <div class="form-group">
            <label for="newPass" class="col-xs-2 control-label">密码:</label>
            <div class="col-xs-9">
                <input type="password" id="pwd"  placeholder="不修改则为空" name="pwd"  class="form-control">
            </div>
        </div>
        <div class="form-group">
            <label for="repass" class="col-xs-2 control-label">重复密码:</label>
            <div class="col-xs-9">
                <input type="password" id="repass" placeholder="不修改则为空" name="repass"  class="form-control">
            </div>
        </div>
         <div class="form-group">
        <label for="mobile" class="col-xs-2 control-label">手机号:</label>
        <div class="col-xs-9">
            <input type="text" id="mobile" name="mobile" value="{{:mobile}}" class="form-control">
        </div>
       </div>
        <div class="form-group">
            <label for="" class="col-xs-2 control-label">角色:</label>
            <div class="col-xs-9">
              <div  id="rolelist">
                ${data}
              </div>
            </div>
        </div>
        <div class="form-group">
            <div class="btn-box">
                <input type="button" class="btn btn-primary" id="submitBtn" value="提交">
            </div>
        </div>
    </form>
    `;

    let template = $.templates(markup);
    let compiledHtml = template.render(localData);
    return compiledHtml;
};

export {
    editView
}